<template>
    <a-form-item :label="label">
        <a-input allowClear v-model:value.number="Parmas[itemkey]" :placeholder="InputPlaceholder" :maxlength="max" />
    </a-form-item>
</template>
<script setup>
import { computed, inject } from "vue"
const props = defineProps(['label', 'itemkey', 'placeholder', 'max'])
const Parmas = inject('Parmas');

const InputPlaceholder = computed(() => {
    return props.placeholder ? this.placeholder : ('请输入' + props.label);
});
</script>
<style lang="less" scoped></style>